home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / wnos / wn941101 / trace.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-10  |  2.2 KB  |  75 lines

  1. #ifndef    _TRACE_H
  2. #define    _TRACE_H
  3.  
  4. #ifndef    _MBUF_H
  5. #include "mbuf.h"
  6. #endif
  7.  
  8. #ifndef    _IFACE_H
  9. #include "iface.h"
  10. #endif
  11.  
  12. /* Definitions for packet dumping */
  13.  
  14. /* List of address testing and tracing functions for each interface.
  15.  * Entries are placed in this table by conditional compilation in main.c.
  16.  */
  17. struct trace {
  18.     int (*addrtest) __ARGS((struct iface *iface,struct mbuf *bp));
  19.     void (*tracef) __ARGS((FILE *,struct mbuf **,int));
  20. };
  21.  
  22. extern struct trace Tracef[];
  23.  
  24. /* In trace.c: */
  25. void dump __ARGS((struct iface *iface,int direction,unsigned type,struct mbuf *bp));
  26. void raw_dump __ARGS((struct iface *iface,int direction, struct mbuf *bp));
  27. void shuttrace __ARGS ((void));
  28. int trprintf __ARGS((FILE *fp,char *fmt,...));
  29.  
  30. /* In arcdump.c: */
  31. void arc_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  32. int arc_forus __ARGS((struct iface *iface,struct mbuf *bp));
  33.  
  34. /* In arpdump.c: */
  35. void arp_dump __ARGS((FILE *fp,struct mbuf **bpp));
  36.  
  37. /* In ax25dump.c: */
  38. void ax25_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  39. int ax_forus __ARGS((struct iface *iface,struct mbuf *bp));
  40.  
  41. /* In enetdump.c: */
  42. void ether_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  43. int ether_forus __ARGS((struct iface *iface,struct mbuf *bp));
  44.  
  45. /* In icmpdump.c: */
  46. void icmp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  47.  
  48. /* In ipdump.c: */
  49. void ip_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  50.  
  51. /* In kissdump.c: */
  52. void ki_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  53. int ki_forus __ARGS((struct iface *iface,struct mbuf *bp));
  54.  
  55. /* In nrdump.c: */
  56. void netrom_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  57.  
  58. /* In pppdump.c: */
  59. void ppp_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  60.  
  61. /* In ripdump.c: */
  62. void rip_dump __ARGS((FILE *fp,struct mbuf **bpp));
  63.  
  64. /* In slcompdump.c: */
  65. void sl_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  66. void vjcomp_dump __ARGS((FILE *fp,struct mbuf **bpp,int unused));
  67.  
  68. /* In tcpdump.c: */
  69. void tcp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  70.  
  71. /* In udpdump.c: */
  72. void udp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  73.  
  74. #endif    /* _TRACE_H */
  75.